import java.util.Random;

public class java009 {
    public static void main(String[] args){
        int arr[]={1,2,3,4,5};
        for(int i=0;i< arr.length;i++){
            int random=new Random().nextInt(5);
            int temp=arr[random];
            arr[random]=arr[i];
            arr[i]=temp;

        }
        for(int i=0;i< arr.length;i++){
            System.out.print(arr[i] + " ");
        }
    }
}
